<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j"
    template="/layout/admin_template.xhtml">

    <ui:define name="body">
    	<h:form>
    		<h:commandButton value="#{messages.add_msg}" action="e_item_type" immediate="true"/>    		
    		<h:panelGroup id="a_panel_id" styleClass="b">
	    		<rich:dataTable id="ut_id" value="#{kItemTypeListManager.itemTypeList}" var="e" rows="25">
	    			<rich:column styleClass="tac" width="5%">
	    				<f:facet name="header">
	    					<h:outputText value="#{messages.id_msg}" />
	    				</f:facet>
	    				<h:commandLink action="#{kItemTypeListManager.edit(e.id)}" value="#{e.id}" title="#{messages.edit_msg}" immediate="true" />
	    			</rich:column>
	    			<rich:column>
	    				<f:facet name="header">
	    					<h:outputText value="#{messages.name_msg}" />
	    				</f:facet>
	    				<h:commandLink action="#{kItemTypeListManager.edit(e.id)}" value="#{e.itemType.getName(klang)}" title="#{messages.edit_msg}" immediate="true" />
	    			</rich:column>
	    			<rich:column styleClass="tac" width="5%">
	    				<f:facet name="header">
	    					<h:outputText value="#{messages.do_msg}" />
	    				</f:facet>
	    				<a:commandLink action="#{kItemTypeListManager.delete(e.itemType)}" reRender="ut_id">
	    					<h:graphicImage value="/img/cross.png" title="#{messages.delete_msg}" />
    					</a:commandLink>
	    				<rich:spacer width="5"/>
<!--			            <h:commandLink action="#{kItemTypeListManager.stock(e.id)}" immediate="true" >-->
<!--		            		<h:graphicImage value="/img/box.png" title="#{messages.stock_msg}" />-->
<!--   						</h:commandLink>-->
	    			</rich:column>
	    			<f:facet name="footer">
	    				<rich:datascroller renderIfSinglePage="false"/>
	    			</f:facet>
	    		</rich:dataTable>
    		</h:panelGroup>
    	</h:form>
    </ui:define>
</ui:composition>
